<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIdxRepairAcceptStatusTaskIdInNoteEntityRelationTable extends AbstractMigration
{
    public function up()
    {
        $this->table('note_entity_relation')
            ->addIndex(['repair_accept_status', 'task_id'], ['type' => 'normal', 'name' => 'idx_repair_accept_status_task_id'])
            ->save();

    }

    public function down()
    {
        $this->table('note_entity_relation')->removeIndexByName('idx_repair_accept_status_task_id')->save();
    }
}
